home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / utilities / easyproc2.lha / EasyProcess / hc / c.a next >
Encoding:
Text File  |  1992-11-05  |  585 b   |  32 lines

  1. *
  2. * HC handler startup module
  3. * Use the following command line to make c.o
  4. * asm c.a
  5. *
  6.  
  7. AbsExecBase    EQU    4
  8.  
  9.     
  10.     xref    _LinkerDB    * linker defined base value
  11.     xref    __BSSBAS        * linker defined base of BSS
  12.     xref    __BSSLEN        * linker defined length of BSS
  13.     xref    @main
  14.  
  15.     section text,code
  16.  
  17. start:
  18.  
  19.     move.l    a4,-(sp)
  20.     lea     _LinkerDB,a4        * load base register
  21.     lea     __BSSBAS,a0        * get base of BSS
  22.     moveq   #0,d1
  23.     move.l  #__BSSLEN,d0        * get length of BSS in longwords
  24.     bra.s   lp                * and clear for length given
  25. clr move.l  d1,(a0)+
  26. lp  dbf     d0,clr
  27.     jsr        @main
  28.     move.l    (sp)+,a4
  29.     rts
  30.         END
  31.